package com.itlong.cloud.iottp;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <desc>
 *      访客人脸接口。
 * <desc/>
 *
 * @createDate 2019/03/04.
 */
@FeignClient(name = "iot-tp-service")
public interface IIotVisitorFaceServiceClient {

    /**
     * <desc>
     *      删除过期访客人脸
     * <desc/>
     *
     * @return
     * @author Qiang.S
     * @createDate 2019/03/04
     */
    @PostMapping(path = "/iotTp/visitor/visitorFaceDelete")
    void visitorFaceDelete() throws Exception;

    /**
     * <desc>
     *      注销用户删除人脸
     * </desc>
     *
     * @param userId
     * @author Jiaqi.X
     * @createDate 2020/06/17s
     */
    @PostMapping(path = "/iotTp/visitor/deleteUserFace")
    void deleteUserFace(@RequestParam("userId") String userId);

    /**
     * <desc>
     *      京东非标-注销用户删除人脸
     * </desc>
     *
     * @param userId 用户id
     * @Author Zhu.yj
     * @createDate  2020/12/23
     */
    @PostMapping(path = "/iotTp/visitor/deleteJdUserFace")
    void deleteJdUserFace(@RequestParam("userId") String userId, @RequestParam("projectId") String projectId);
}
